from django.conf.urls import url
from django.urls import path
from oneself import views
from django.contrib.auth.decorators import login_required

app_name = 'myself'

urlpatterns = [
    path('myself/', login_required(views.myself_index), name='index'), # 个人中心首页
    path('myself_information/', login_required(views.myself_information), name='myself_information'), # 我的信息
    path('myself_information_handle/', login_required(views.myself_information_handle), name='myself_information_handle'), # 个人信息修改
    path('myself_safety/', login_required(views.myself_safety), name='myself_safety'),
    path('myself_setpay/', login_required(views.myself_setpay), name='myself_setpay'),  # 设置支付密码
    path('myself_setpay_handle/', login_required(views.myself_setpay_handle), name='myself_setpay_handle'),  # 设置支付密码处理
    path('myself_password/', login_required(views.myself_password), name='myself_password'), # 在用户知道旧密码的情况下修改密码
    path('myself_bindphone/', login_required(views.myself_bindphone), name='myself_bindphone'), # 绑定新的手机
    path('myself_bindphone/', login_required(views.myself_bindphone), name='myself_bindphone'), # 绑定新的手机处理函数
    path('myself_email/', login_required(views.myself_email), name='myself_email'), # 绑定邮箱
    path('myself_email_handle/', login_required(views.myself_email_handle), name='myself_email_handle'), # 绑定邮箱处理函数
    path('check_email_user/', login_required(views.check_email_user), name='check_email_user'), # 验证邮箱发送的验证码
    url('send_email/', login_required(views.send_email_user), name='send_email'), # 发送邮件
    path('myself_idcard/', login_required(views.myself_idcard), name='myself_idcard'), # 实名认证
    path('myself_question/', login_required(views.myself_question), name='myself_question'), # 设置安全问题
    path('myself_question_handle/', login_required(views.myself_question_handle), name='myself_question_handle'), # 设置安全问题处理函数
    path('address/', login_required(views.myself_address), name='address'), # 我的收货地址
    path('myself_order/', login_required(views.myself_order), name='myself_order'), # 我的订单
    path('myself_orderinfo/', login_required(views.myself_orderinfo), name='myself_orderinfo'), # 订单详情
    path('myself_refund/', login_required(views.myself_refund), name='myself_refund'), # 退换货管理
    path('myself_logistics/', login_required(views.myself_logistics), name='myself_logistics'), # 物流
    path('myself_commentlist/', login_required(views.myself_commentlist), name='myself_commentlist'), # 对商品发表评价
    path('myself_change/', login_required(views.myself_change), name='myself_change'), # 退款售后
    path('myself_record/', login_required(views.myself_record), name='myself_record'), # 退货后欠款去向
    path('myself_coupon/', login_required(views.myself_coupon), name='myself_coupon'), # 我的优惠
    path('myself_bonus/', login_required(views.myself_bonus), name='myself_bonus'), # 我的红包
    path('myself_bill/', login_required(views.myself_bill), name='myself_bill'), # 我的账单明细
    path('myself_billlist/', login_required(views.myself_billlist), name='myself_billlist'), # 我的账单列表
    path('myself_collection/', login_required(views.myself_collection), name='myself_collection'), # 我的收藏
    path('myself_foot/', login_required(views.myself_foot), name='myself_foot'), # 我的足迹
    path('myself_comment/', login_required(views.myself_comment), name='myself_comment'), # 我的评价
    path('myself_news/', login_required(views.myself_news), name='myself_news'), # 我的消息
    path('myself_blog/', login_required(views.myself_blog), name='myself_blog'), # 消息详情
    ]